<div class="window control_projects" style="">
	<div class="title">Projects - <a href="/projects/add">New projects</a></div>
	<div class="content">
		<table>
			<tr class="header">
				<td class="projectname even">Project name</td>
				<td class="creator even">Creator</td>
				<td class="actions even">Actions</td>
			</tr>
			<?php foreach ($projects as $i => $project) : ?>
			<tr class="project">
				<td class="projectname <?php echo ($i % 2 == 0) ? 'not-even' : 'even'; ?>">
					<?php echo $project['Project']['name']; ?>
				</td>
				<td class="creator <?php echo ($i % 2 == 0) ? 'not-even' : 'even'; ?>">
					<?php echo $project['Creator']['username']; ?>
				</td>
				<td class="actions <?php echo ($i % 2 == 0) ? 'not-even' : 'even'; ?>">
					<?php echo $this->Html->link('edit', array('action' => 'edit', $project['Project']['id'])); ?>
				</td>
			</tr>
		<?php endforeach; ?>
		</table>
	</div>
</div>